statefiles: use tmpfile functions for pio files
authorDavid Härdeman <[email protected]>
Fri, 28 Nov 2025 11:43:22 +0000 (12:43 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 9 Dec 2025 15:34:12 +0000 (16:34 +0100)
commit6779344a8c8a96cfdb90bfd2ccd98f4e303b30c4
tree6b3cbaf320ef61de9f8883ff417ab016bf64b12d
parent9f8abcc662d04208ab8880e61c789f824a5fac5e
statefiles: use tmpfile functions for pio files

Reduce code duplication by using the same tmpfile functions
for pio handling as well.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/333
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/statefiles.c
src/statefiles.h